package com.wangjiang.foundation.common.rest.entity;

import lombok.Data;

@Data
public class Result<T extends Object> {
    private int code;

    private String message;

    private T data;

    public Result() {
    }

    public int getCode() {
        return code;
    }

    public Result setCode(int resultCode) {
        this.code = resultCode;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public Result setMessage(String message) {
        this.message = message;
        return this;
    }

    public T getData() {
        return data;
    }

    public Result setData(T data) {
        this.data = data;
        return this;
    }

}
